import { createRouter, createWebHistory } from 'vue-router'

import Login from "../views/login/Login.vue";
import home from '../views/home/home.vue';

const routes = [
  {
    pah: '/',
    redirect: '/login'
  },
  {
    path: '/login',
    component: Login
  },
  {
    path: '/home',
    // component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
    component: home
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
